import {RouteRecordRaw} from 'vue-router'

const routers:RouteRecordRaw[] = 
[
  {
    path: '/training',
    name: 'training',
    component: () => import('@/views/training/index.vue'),
    meta: {
      title: '培训首页',
      role: ['admin'],
      hide: true
    }
  },
  {
    path: '/myTraining',
    name: 'mytraining',
    component: () => import('@/views/training/myTraining.vue'),
    meta: {
      title: '我的培训',
      role: ['admin'],
      hide: 'true'
    }
  },
  {
    path: '/training/addTraining',
    name: 'addTraining',
    component: () => import('@/views/training/addTraining.vue'),
    meta: {
      title: '添加培训',
      role: ['admin'],
      hide: true
    }
  },
  {
    path: '/training/staffing',
    name: 'staffing',
    component: () => import('@/views/training/staffing.vue'),
    meta: {
      title: '安排人员',
      role: ['admin'],
      hide: true
    }
  },
  {
    path: '/training/classSchedule',
    name: 'classSchedule',
    component: () => import('@/views/training/classSchedule.vue'),
    meta: {
      title: '课程安排',
      role: ['admin'],
      hide: true
    }
  },
  {
    path: '/training/arrange',
    name: 'arrage',
    component: () => import('@/views/training/arrange.vue'),
    meta: {
      title: '安排',
      role: ['admin'],
      hide: true
    }
  }
]

export default routers